package com.sansan.qiangji.controller.warehouse;

import com.sansan.qiangji.realize.warehouse.TaskLogReal;
import com.sansan.qiangji.resultVO.ResultVO;
import com.sansan.qiangji.utils.ResultVOUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@CrossOrigin()
@RequestMapping("/taskLog")
@RestController
@Slf4j
public class TaskLogController {
    private TaskLogReal taskLogReal;

    @Resource
    public void setTaskLogReal(TaskLogReal taskLogReal){
        this.taskLogReal = taskLogReal;
    }

    @PostMapping("/findByStackerTaskCode")
    public ResultVO<Object> findByStackerTaskCode(@RequestParam(value = "stackerTaskCode") String stackerTaskCode){
        return ResultVOUtil.success(taskLogReal.findByStackerTaskCode(stackerTaskCode));
    }
}
